package com.gome.axwl.aoc.service.impl;

import com.gome.axwl.aoc.common.constants.AppVersionConstants;
import com.gome.axwl.aoc.common.util.BeanJsonUtil;
import com.gome.axwl.aoc.entity.dto.AppVersionDto;
import com.gome.axwl.aoc.entity.po.AppVersionPo;
import com.gome.axwl.aoc.service.UserService;
import com.gome.axwl.aoc.service.feign.MasterDataFeignClient;
import com.gome.axwl.aoc.service.feign.PmsFeignClient;
import com.gome.commons.core.ErrorCode;
import com.gome.commons.core.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;

import java.util.Date;

/**
 * @Description: 用户
 * @Auther: chengh
 * @Date: 2018/4/25 13:59
 */
@Service
public class UserServiceImpl implements UserService {

    private final static Logger log = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    private PmsFeignClient pmsFeignClient;

    /**
     * 获取用户菜单
     * @param appKey
     * @param userId
     * @return
     */
    @Override
    public ResultData queryResourceByUserAndRole(String appKey, String userId) {
        return pmsFeignClient.queryResourceByUserAndRole(appKey, userId);
    }
}
